ibs
Class LoginValidation
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
ibs.LoginValidation
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
public class LoginValidation
- extends javax.servlet.http.HttpServlet
Servlet implementation class for Servlet:validates the login information of user.
- See Also:
- Serialized Form
|
Method Summary |
void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
doGet : It internally calls the dopost method |
void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
doPost : It checks the username and password with the database and gives response.It also forwards the request to session cookies.java if the same user enters password wrongly |
| Methods inherited from class javax.servlet.http.HttpServlet |
service |
| Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LoginValidation
public LoginValidation()
doGet
public void doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws java.io.IOException,
javax.servlet.ServletException
- doGet : It internally calls the dopost method
- Overrides:
doGet in class javax.servlet.http.HttpServlet
- Parameters:
req - : Request carries the username and passwordres - : Response carries a message which says whether he is valid user or not
- Throws:
java.io.IOException
javax.servlet.ServletException- See Also:
HttpServlet.doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
doPost
public void doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws java.io.IOException,
javax.servlet.ServletException
- doPost : It checks the username and password with the database and gives response.It also forwards the request to session cookies.java if the same user enters password wrongly
- Overrides:
doPost in class javax.servlet.http.HttpServlet
- Parameters:
req - : Request carries the username and passwordres - : Response carries a message which says whether he is valid user or not
- Throws:
java.io.IOException
javax.servlet.ServletException- See Also:
HttpServlet.doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)